package cn.pojo.dto;

import cn.pojo.HealthAbnormalPerson;
import cn.pojo.HealthOrderPerson;
import cn.pojo.HealthUser;
import org.springframework.stereotype.Component;

@Component
public class OrderAbnormal extends HealthAbnormalPerson {

    private HealthUser user;
    private OrderVaccine vaccine;

    public OrderAbnormal() {
    }

    public OrderAbnormal(HealthUser user, OrderVaccine vaccine) {
        this.user = user;
        this.vaccine = vaccine;
    }

    public HealthUser getUser() {
        return user;
    }

    public void setUser(HealthUser user) {
        this.user = user;
    }

    public OrderVaccine getVaccine() {
        return vaccine;
    }

    public void setVaccine(OrderVaccine vaccine) {
        this.vaccine = vaccine;
    }

    @Override
    public String toString() {
        return "OrderAbnormal{" +
                "user=" + user +
                ", orderVaccine=" + vaccine +
                '}';
    }
}
